import { EventEmitter } from "../event/EventEmitter";
import { ILoader, IValid } from "../interfaces";
import { AppEvent } from "../event/AppEvent";
import { AppEventName } from "../Define";
import { LoadParam } from "../res/ResDefine";


export class Loader extends EventEmitter implements ILoader, IValid {

    isValid() {
        return true;
    }

    init(): void {
        this._mediator.subscribe(new AppEvent(AppEventName.app_loadRes, this.loadRes, this))
    }

    private loadRes(param: LoadParam) {

    }
}